package com.cxx.purchasecharge.component.bean;

import java.util.List;

public class GoodsBean extends BaseBean
{
    private static final long serialVersionUID = 1L;

    private String name;
    private String imagePath;
    private String maker;
    private String barCode;
    private String specification;
    private String technicalParameters;
    private String comment;
    /**
     * 进货价
     */
    private float importPrice;
    /**
     * 零售价
     */
    private float retailPrice;
    /**
     * 批发价
     */
    private float tradePrice;

    private boolean available = true;
    private GoodsUnitBean unitBean;
    private GoodsTypeBean typeBean;
    //private String goodsTypeId;
    //private String goodsTypeName;

    private GoodsStorageBean storageBean;

    private List <GoodsBean> children;
    private boolean isGoods;
    private String state = "closed";
    private String userCreated;
    private String userUpdated;

    public String getName ()
    {
        return name;
    }

    public void setName (String name)
    {
        this.name = name;
    }

    public String getImagePath ()
    {
        return imagePath;
    }

    public void setImagePath (String imagePath)
    {
        this.imagePath = imagePath;
    }

    public String getMaker ()
    {
        return maker;
    }

    public void setMaker (String maker)
    {
        this.maker = maker;
    }

    public String getBarCode ()
    {
        return barCode;
    }

    public void setBarCode (String barCode)
    {
        this.barCode = barCode;
    }

    public String getSpecification ()
    {
        return specification;
    }

    public void setSpecification (String specification)
    {
        this.specification = specification;
    }

    public String getTechnicalParameters ()
    {
        return technicalParameters;
    }

    public void setTechnicalParameters (String technicalParameters)
    {
        this.technicalParameters = technicalParameters;
    }

    public String getComment ()
    {
        return comment;
    }

    public void setComment (String comment)
    {
        this.comment = comment;
    }

    public float getImportPrice ()
    {
        return importPrice;
    }

    public void setImportPrice (float importPrice)
    {
        this.importPrice = importPrice;
    }

    public float getRetailPrice ()
    {
        return retailPrice;
    }

    public void setRetailPrice (float retailPrice)
    {
        this.retailPrice = retailPrice;
    }

    public float getTradePrice ()
    {
        return tradePrice;
    }

    public void setTradePrice (float tradePrice)
    {
        this.tradePrice = tradePrice;
    }

    public GoodsUnitBean getUnitBean ()
    {
        return unitBean;
    }

    public void setUnitBean (GoodsUnitBean unitBean)
    {
        this.unitBean = unitBean;
    }

    public GoodsTypeBean getTypeBean ()
    {
        return typeBean;
    }

    public void setTypeBean (GoodsTypeBean typeBean)
    {
        this.typeBean = typeBean;
    }

    public boolean isAvailable ()
    {
        return available;
    }

    public void setAvailable (boolean available)
    {
        this.available = available;
    }

    /*public String getGoodsTypeId ()
    {
        return goodsTypeId;
    }

    public void setGoodsTypeId (String goodsTypeId)
    {
        this.goodsTypeId = goodsTypeId;
    }

    public String getGoodsTypeName ()
    {
        return goodsTypeName;
    }

    public void setGoodsTypeName (String goodsTypeName)
    {
        this.goodsTypeName = goodsTypeName;
    }*/

    public GoodsStorageBean getStorageBean ()
    {
        return storageBean;
    }

    public void setStorageBean (GoodsStorageBean storageBean)
    {
        this.storageBean = storageBean;
    }

    public List <GoodsBean> getChildren ()
    {
        return children;
    }

    public void setChildren (List <GoodsBean> children)
    {
        this.children = children;
    }

    public boolean isGoods ()
    {
        return isGoods;
    }

    public void setGoods (boolean isGoods)
    {
        this.isGoods = isGoods;
    }

    public String getNameAndCurrentStock ()
    {
        return isGoods ? this.name + " - " + this.storageBean.getCurrentStock () : "";
    }

    public String getState ()
    {
        return state;
    }

    public void setState (String state)
    {
        this.state = state;
    }

    public String getUserCreated ()
    {
        return userCreated;
    }

    public void setUserCreated (String userCreated)
    {
        this.userCreated = userCreated;
    }

    public String getUserUpdated ()
    {
        return userUpdated;
    }

    public void setUserUpdated (String userUpdated)
    {
        this.userUpdated = userUpdated;
    }

}
